// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import './assets/css/cover.css'
import {Button, Container, Header, Main, Aside, Menu, MenuItem, Submenu, Icon, Tag, Table, TableColumn, Pagination, Row, Col, Avatar, Dropdown, DropdownMenu, DropdownItem} from 'element-ui'

const components = {Button, Container, Header, Main, Aside, Menu, MenuItem, Submenu, Icon, Tag, Table, TableColumn, Pagination, Row, Col, Avatar, Dropdown, DropdownMenu, DropdownItem}
Object.keys(components).forEach(key => {
  Vue.component(components[key].name, components[key])
})
Vue.prototype.$ELEMENT = { size: 'small' }

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
